package com.spzx.service.Impl;

import com.spzx.common.core.constant.SecurityConstants;
import com.spzx.common.core.domain.R;
import com.spzx.product.api.RemoteProductSkuService;
import com.spzx.product.api.domain.ProductSku;
import com.spzx.product.api.domain.DTO.SkuDTO;
import com.spzx.service.ProductSkuService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ProductSkuServiceImpl implements ProductSkuService {
    @Resource
    RemoteProductSkuService remoteProductSkuService;
    @Override
    public List<ProductSku> skuList(SkuDTO skuDTO) {
        R<List<ProductSku>> listR = remoteProductSkuService.skuList(SecurityConstants.INNER,skuDTO);
        System.out.println(listR.getData());
        return listR.getData();
    }
}
